﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.Abstracts
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public abstract class Win32Collection<T>
    {
        internal ManagementObjectSearcher searcher;

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public abstract ReadOnlyCollection<T> GetCollection();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="query"></param>
        public Win32Collection(string query) { searcher = new ManagementObjectSearcher(query); }
    }
}
